package com.fishery.search.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.search.entity.SearchCondition;
import org.elasticsearch.search.sort.SortOrder;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface DiagnoseSearch {

	/**
	 * 带排序分页搜索疾病信息
	 *
	 * @param searchCondition
	 * @param sortOrderMap
	 * @return
	 */
	IPage searchInfo(SearchCondition searchCondition, Map<String, SortOrder> sortOrderMap);

	/**
	 * 通过id删除文档
	 *
	 * @param id
	 * @return
	 */
	boolean deleteDocumentById(String id);

}
